/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package matching.aligment;

import java.net.URI;
import java.util.HashMap;
import java.util.Iterator;
import matching.Matching;
import org.semanticweb.owl.align.Alignment;
import ontology.Ontology;
import org.semanticweb.owl.align.Cell;
import org.semanticweb.owl.apibinding.OWLManager;
import org.semanticweb.owl.model.OWLDescription;
import org.semanticweb.owl.model.OWLOntologyManager;

/**
 *
 * @author arida
 */
public class AligmentConverter {

    /**
     * converte um alinhamento gerado pela aligment API em um matching com contextos
     * @param a
     * @return
     */
    public static Matching execute(Alignment al, Ontology src, Ontology tgt){
        HashMap<OWLDescription, OWLDescription> alignments = new HashMap<OWLDescription, OWLDescription>();

        Iterator it = al.iterator();
        Cell c;

        while(it.hasNext()){
            System.out.println(it.next());
        }

        OWLOntologyManager manager = OWLManager.createOWLOntologyManager();
        
         
   
        return null;
    }

}
